<include file="__THEME__/header" />
<script type="text/javascript" src="__PUBLIC__/js/jquery.form.js"></script>
<script type="text/javascript" src="{:U('weibo/plugins/init')}"></script>
<script type="text/javascript" src="__PUBLIC__/js/jquery.autocomplete.js"></script>


<div class="content"><!-- 内容 begin  --> 
  <include file="__THEME__/center_menu" />
  <div class="main">
      <div class="mainbox_C">
      <div style="overflow:hidden;">
        
		 <div>
         
         <form action="{:U('home/Home/index')}" id="quick_search_form" method="post">
    <div class="soso br3"><label id="_header_search_label" style="display: block;" onclick="$(this).hide();$('#_header_search_text').focus();">搜同校商品</label><input type="text" class="so_text" value="" name="k" id="_header_search_text" onblur="if($(this).val()=='') $('#_header_search_label').show();"/><input name="" type="button" onclick="$('#quick_search_form').submit()" class="so_btn hand br3"/></div>
	<script>
	if($('#_header_search_text').val()=='')
		$('#_header_search_label').show();
	else
		$('#_header_search_label').hide();
	</script>
</form>
    
        <h1>{$myschool['school']}</h1>
        </div>
            <div class="tab-menu clear"><!-- 切换标签 begin  -->
           
              <ul>
                <li><a id="feed_colleague_item" rel="colleague" class="<eq name='type' value=''>on</eq> feed_item" href="{:U('home/Home/index')}"><span>销售信息</span></a></li>
				
                <li><a id="feed_all_item" rel="all" class="<eq name='type' value='original'>on</eq> feed_item" href="{:U('home/Home/qiugou')}"><span>求购信息</span></a></li>
               
              </ul>
            </div>
	    <div class="goodsBox">
         
        <php>if($goodslist){</php>
          
            <volist id="vo" name="goodslist">     
              
              <table class="goods_tab" border="0" cellspacing="0" cellpadding="0" id="list_{$vo['id']}">
  <tr>
    <td width="106px"><div class="goods_img_box2">
               <php>if($vo[gimage]){</php>
                <a href="{:U('shop/index/goods',array('uid'=>$vo['uid'],'gid'=>$vo['id']))}"><img src="__UPLOAD__/goods/s_{$vo[gimage]}"/></a>
                <php>}else{</php>
                <a href="{:U('shop/index/goods',array('uid'=>$vo['uid'],'gid'=>$vo['id']))}"><img src="__THEME__/images/no_image_s.gif" /></a>
                <php>}</php>
                </div></td>
    <td><table  border="0" cellspacing="0" cellpadding="0" class="goods_tab2">
              <tr><td width="50%">
               
                   <a href="{:U('shop/index/goods',array('uid'=>$vo['uid'],'gid'=>$vo['id']))}">{$vo['title']}</a>
                   
                   </td><td width="20%"> 
                     ￥ {$vo.gprice} 
					 
                </td>
                   <td width="30%">{$vo.utime|friendlyDate}</td>
              </tr>
              <tr>
                <td>
                    {$vo['uname']} <a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin={$vo['qq']}&site=qq&menu=yes"><img border="0" src="http://wpa.qq.com/pa?p=2:{$vo['qq']}:45" alt="点击这里给我发消息" title="点击这里给我发消息"></a></td>
                <td>N {$vo['gnumber']}
					  </td>
                <td><php>if($vo['uid'] == $mid){</php><a href="{:U('home/Myshop/edit',array('id'=>$vo['id']))}">编辑</a>  <a href="javascript:void(0)" onclick="ui.confirm(this,'确认要删除这条信息?')" callback="Deleted({$vo['id']})">删除</a><php>}</php></td>
              </tr>
              </table></td>
  </tr>
</table>

             <p class="lineD_btm"></p>
             
          </volist>
<php>}else{</php>	
          
          <li>
                    你所在的学校暂无出售信息，点击<a href="{:U('index/Index/index')}">这里</a>查看更多
                  
              
                 <li>
                
<php>}</php>			  
           
          	
		</div>
        <div class="page">{$page} </div>
        </div>
        <div class="c"></div>
      </div>
    </div>

</div>
<!-- 内容 end --> 
<script>
function Deleted(goods_id){
    $.post(U('home/Myshop/doDel'),{id:goods_id},function(rel){
	    if(rel==1){
		$('#list_'+goods_id).remove();
		ui.success('删除成功');
		ui.box.close();
		}else{
		ui.error('删除失败');		
		}
	
	});	
}
</script>


<include file="__THEME__/footer" /> 